import { createApp } from 'vue'
import router from '@/router/index'
import App from './App.vue'
import '@/style/basic.scss'
import '@/style/index.css'
import "@/permission"; // 权限

import VMdPreview from '@kangc/v-md-editor/lib/preview';
import '@kangc/v-md-editor/lib/style/preview.css';
import vuepressTheme from '@kangc/v-md-editor/lib/theme/vuepress.js';
import '@kangc/v-md-editor/lib/theme/style/vuepress.css';
import createCopyCodePlugin from '@kangc/v-md-editor/lib/plugins/copy-code/index';
import '@kangc/v-md-editor/lib/plugins/copy-code/copy-code.css';

import Prism from 'prismjs';


VMdPreview.use(vuepressTheme, {
  Prism
});

// markdown支持代码快速复制
VMdPreview.use(createCopyCodePlugin());

const app = createApp(App)

app
  .use(VMdPreview)
  .use(router)
  .mount('#app')
